package com.buding.fx.netty;

import io.netty.channel.ChannelHandler;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;

/**
 * @author mingdongwei-jwk
 * @date 2022/12/08 15:00
 * @class com.buding.fx.netty
 * @Description
 */
public class ChatClientHandler extends SimpleChannelInboundHandler<String> {
    @Override
    protected void channelRead0(ChannelHandlerContext channelHandlerContext, String s) throws Exception {
        System.out.println("recive msg: "+s.trim());
    }
}
